import { Tools } from 'weaver-mobile';

export const getDetailView = params => {   //列表数据
    let options = {
		method: 'GET',
		url: '/api/workrelate/goal/getDetailView',
		params
	};
    return Tools.callApi(options);
}

export const getSubGoalList = params => {   //列表数据
    let options = {
		method: 'GET',
		url: '/api/workrelate/goal/getSubGoalList',
		params
	};
    return Tools.callApi(options);
}

export const editStatus = params => {   //设置状态
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/editStatus',
		params
	};
    return Tools.callApi(options);
}

export const setSpecial = params => {   //添加关注
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/setSpecial',
		params
	};
    return Tools.callApi(options);
}

export const editGoalField = params => {   //编辑详情
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/editGoalField',
		params
	};
    return Tools.callApi(options);
}

export const goalSaveBaseInfo = params => {   //批量保存
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/goalSaveBaseInfo',
		params
	};
    return Tools.callApi(options);
}